﻿<%@ Page Language="C#" MasterPageFile="~/Blog.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="IXION.BLOG.WEB.UI._Default" EnableViewState="false" %>

<%@ Register TagPrefix="calender" TagName="Calender" Src="~/UserControl/Calendar.ascx" %>
<%@ Register TagPrefix="search" TagName="Search" Src="~/UserControl/Search.ascx" %>
<%@ Register TagPrefix="music" TagName="Music" Src="~/UserControl/Music.ascx" %>
<%@ Register TagPrefix="cd" TagName="CountdownPanel" Src="~/UserControl/CountdownPanel.ascx" %>
<%@ Register TagPrefix="pager" TagName="Pager" Src="~/UserControl/Pager.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div id="context" class="context">
        <div id="left" class="BlogList pull-left">
            <div class="content-left">
                <asp:Repeater ID="ArticleRepeater" runat="server">
                    <ItemTemplate>
                        <div class="pull-left title">
                            <a href="Article.aspx?id=<%# Eval("Id") %>"><%# Eval("Title") %></a>
                        </div>
                        <div class="pull-right posttime">
                            发表时间：<a href="Search.aspx?key=PostTime&value=<%# ((DateTime)Eval("PostTime")).ToString("yyyy-MM-dd")  %>"><%# ((DateTime)Eval("PostTime")).ToString("yyyy-MM-dd hh:mm:ss")  %></a></div>
                        <br />
                        <hr />
                        <div class="summary">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%# Eval("Summary") %></div>
                        <div class="more">
                            <a href="Article.aspx?id=<%# Eval("Id") %>">阅读全文链接</a>
                        </div>
                        <div class="tags">
                            Tags: <%# ConvertToTags( Eval("Tags")) %>
                        </div>
                        <div class="article-censuses">
                            作者: <%# ((IXION.BLOG.DOMAIN.USER.User)Eval("Author")).UserName %> | 分类: <a href="Catalog.aspx?id=<%# ((IXION.BLOG.DOMAIN.CATALOG.Catalog)Eval("Catalog")).Id %>"><%# ((IXION.BLOG.DOMAIN.CATALOG.Catalog)Eval("Catalog")).Name %></a> | 评论: <%# Eval("CommentCount") %> | 浏览: <%# Eval("ReadCount") %>
                        </div>
                        <hr />
                    </ItemTemplate>
                </asp:Repeater>
                <pager:Pager ID="Pager" runat="server" />
                <%--<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />--%>
            </div>
        </div>
        <div id="right" class="rightInfo pull-right">
            <div id="countdown">
                <cd:CountdownPanel runat="server" id="CountdownPanel" />
            </div>
            <div id="search">
                <hr class="controlSplit" />
                <search:Search ID="Search" runat="server" />
            </div>
            <div id="calendar">
                <hr class="controlSplit" />
                <calender:Calender ID="Calender" runat="server" />
            </div>
            <div id="music">
                <hr class="controlSplit" />
                <music:Music ID="Music" runat="server" />
            </div>
            <div id="new">
                最新博文
            </div>
            <div id="hotTags">
                热门标签
            </div>
            <div id="links">
                友情链接
            </div>
            <div id="Div1">
                友情链接
            </div>
            <div id="Div2">
                友情链接
            </div>
            <div id="Div3">
                友情链接
            </div>
            <div id="Div4">
                友情链接
            </div>
            <div id="Div5">
                友情链接
            </div>
        </div>
    </div>
</asp:Content>
